﻿namespace SocketCore.Common.Message;

public class MessageData<T>
{
    /// <summary>
    /// 消息数据类型
    /// </summary>
    public MessageDataType MessageDataType { get; set; }

    /// <summary>
    /// 消息数据
    /// </summary>
    public T? Data { get; set; }
}

public enum MessageDataType
{
    /// <summary>
    /// 版本
    /// </summary>
    ClientVersion,

    /// <summary>
    /// 强制更新
    /// </summary>
    ForcedUpdate,

    /// <summary>
    /// 更新
    /// </summary>
    BetaUpdate,

    /// <summary>
    /// 通知
    /// </summary>
    Notification,

    /// <summary>
    /// 弹窗
    /// </summary>
    Dialog,
}